﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ABCLogistic_System_V2._0.BL;

namespace ABCLogistic_System_V2._0.GUI
{
    public partial class frmQTHT : Form
    {
        public frmQTHT()
        {
            InitializeComponent();
        }
        #region Xu ly khi nhan vao cac button
        // khai bao cac form
        frmMainInterface giaodienchinh;
        frmQTHT_Nguoidung nguoidung;
        frmQTHT_Doimatkhau doimatkhau;
        frmQTHT_Nhomnguoidung nhomnguoidung;
        frmQTHT_Phanquyen phanquyen;
        frmQTHT_Quydinhhethong quydinhhethong;

        /// <summary>
        /// xu ly quay ve giao dien chinh khi nhan nut giao dien chinh
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnGiaodienchinh_Click(object sender, EventArgs e)
        {
            giaodienchinh = new frmMainInterface();
            giaodienchinh.Show();
            this.Close();
        }

        /// <summary>
        /// hien giao dien them nguoi dung khi nhan them nguoi dung
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnThemnguoidung_Click(object sender, EventArgs e)
        {
            nguoidung = new frmQTHT_Nguoidung();
            nguoidung.Text = "Thêm người dùng";
            nguoidung.lblchange.Text = "Thêm người dùng";
            nguoidung.ShowDialog();
        }

        /// <summary>
        /// hien form phan quyen khi nhan vao phan quyen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            phanquyen = new frmQTHT_Phanquyen();
            phanquyen.ShowDialog();
        }

        /// <summary>
        /// hien form quy dinh he thong khi nhan vao quy dinh he thong
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnQuydinh_Click(object sender, EventArgs e)
        {
            quydinhhethong = new frmQTHT_Quydinhhethong();
            quydinhhethong.ShowDialog();
        }
        #endregion



    }
}
